SDAC

TCustomDAConnection.ApplyUpdates Method

Applies changes from the specified datasets.

Class

TCustomDAConnection

Syntax

procedure ApplyUpdates(const DataSets: array of TCustomDADataSet); overload; virtual;

Parameters
DataSets
A list of datasets changes in which are to be applied.

Remarks

Call the ApplyUpdates method to write all pending cached updates from the specified datasets. The ApplyUpdates method passes cached data to the database for storage, takes care of committing or rolling back transactions and clearing the cache when operation is successful.

Using ApplyUpdates for connection is a preferred method of updating datasets rather than calling each individual dataset's ApplyUpdates method.

© 1997-2024 Devart. All Rights Reserved. Request Support DAC Forum Provide Feedback